package com.lebang.mapper.buss;

import com.lebang.configuration.datasource.DataSource;
import com.lebang.entity.sys.Custom;
import com.lebang.example.CustomExample;
import com.lebang.mapper.MyBatisBaseDao;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface CustomMapper  extends MyBatisBaseDao<Custom, Long, CustomExample> {
    int deleteByPrimaryKey(Integer id);

    int insert(Custom record);

    int insertSelective(Custom record);

    Custom selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Custom record);

    int updateByPrimaryKey(Custom record);

    @DataSource("commonDB")
    List<Custom> getAllCustomList();

    @DataSource("commonDB")
    String selectByCustomId(@Param("customer") String customer);
}